package com.design_pattern.Interpreter;

public class Sub extends Operator{
    Sub(Expression left, Expression right) {
        super(left, right);
    }

    @Override
    public int interpret() {
        return left.interpret() - right.interpret();
    }
}
